[OpenCV] cvFilter2D works very very slow in Ubuntu 9.10 amd64?

Posted by Hong on Stack Overflow See other posts from Stack Overflow or by Hong
Published on 2010-04-14T02:35:32Z Indexed on 2010/04/14 2:43 UTC
Read the original article Hit count: 252

Filed under:

Hi, has someone tried the cvFilter2D under 64bit linux? Recently when I was trying to port some code to the amd64 version of Ubuntu 9.10, I just found that the cvFilter2D works really slow. The version is Opencv 2.0.

The code is as follows:

CvMat *mat_src = cvCreateMat(128, 128, CV_32FC1); CvMat *mat_dest = cvCreateMat(128, 128, CV_32FC1); CvMat* mat_kernel = cvCreateMat( 25, 25, CV_32FC1);

// initialization ...

cvFilter2D( (CvMat*)mat_src, (CvMat*)mat_dest, (CvMat*)mat_kernel, cvPoint( (25-1)/2, (25-1)/2));

// I needs approximately 100ms to finish that... My CPU is Intel 2.4G

However, the Opencv 1.1pre only cost me 3ms for the same code...

© Stack Overflow or respective owner

Related posts about opencv